#include <iostream>
#include "img_process.h"
#include "ive.h"
#include "cam_module.h"
#ifdef __cplusplus
extern "C"
{
#include "time_fun.h"
};
#endif
using namespace std;
int main() {


#if TEST_CASE3
    CAM_MODULE cam;
    int ret =0;
    ret = cam.SetupCamVI(1);
    if(ret <0 )
        return -1;
    ret = cam.SetupVO(4);
    if(ret <0 )
        return -1;
    cam.start();
//    cam.SAMPLE_VIO_ViDeMuxYuv(0);
#endif
#if 1//TEST_CASE4
    IVE ive;
    char* pchSrcFileName = "./data/input/canny/canny.yuv";
    char* pchDstFileName = "./data/output/canny/canny.yuv";
    int u32Width = 720;
    int u32Height = 576;
    AlgoParam* src = new ive_AlgoParam;
    AlgoParam* dst = new ive_AlgoParam;
    ive.LoadImage(pchSrcFileName, u32Height, u32Width, src);
    ive.canny(src, dst, 30, 90, 3, true );
    ive.SaveImage(pchDstFileName, dst);

    delete(src);
    delete(dst);
#endif
    return 0;

}
